package com.oo.inherit_3.computer;

/**
 * Computer--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:31
 **/
public class Computer {

    private CPU myCpu;

    private int hd;

    private String no;

    private String memory;

    protected void run() {
        System.out.println(this.getNo()+"开机运行");
        this.getMyCpu().work();
    }

    public Computer(CPU myCpu, int hd, String no, String memory) {
        this.myCpu = myCpu;
        this.hd = hd;
        this.no = no;
        this.memory = memory;
    }

    public CPU getMyCpu() {
        return myCpu;
    }

    public void setMyCpu(CPU myCpu) {
        this.myCpu = myCpu;
    }

    public int getHd() {
        return hd;
    }

    public void setHd(int hd) {
        this.hd = hd;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }
}
